<%@ include file="../common/common_include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	List<TblSiteJob> list = (List<TblSiteJob>)request.getAttribute("list");
	JobForm form = (JobForm)request.getAttribute("command");
%>
<div class="oaTable">
<table class="tableList">

	<tbody>
		<tr id="tableHeader">
			<th style="width: 43%;">职位名称</th>
			<th style="width: 10%;">人数</th>
			<th style="width: 15%;">工作地点</th>
			<th style="width: 18%;">发布日期</th>
			<th style="width:14%;">操作</th>
		</tr>
		<%
          	if(null!=list && list.size()>0){
          		for(TblSiteJob job:list){
          			String id = EncrypTool.encode(job.getId()+"");
          			%>
		<tr>
			<td><%=job.getJobName() %></td>
			<td style="text-align: left; padding-left: 10px;">
			<%=job.getTotalCount()%></td>
			<td><%=job.getWorkAddress()%></td>
			<td><%=null!=job.getPublicTime()?DateFormatUtils.format(job.getPublicTime().getTime(), "yyyy-MM-dd HH:mm:ss"):"" %></td>
			<td>
				<div class="innerBtnWrap">
					<a class="a-btn-microsoft btn" href="javascript:XF.Site.editJob('<%=id %>')" style="color: #fff">编辑</a>
					<a class="a-btn-microsoft btn topBtn" href="javascript:XF.Site.deleteJob('<%=id %>')" style="color: #fff">删除</a>
				</div>
			</td>
		</tr>
		<%
           		}
           	}
        %>
	</tbody>

	<tfoot>
		<tr id="tableFooter">
			<td colspan="5">
				<div class="pagination">
					<monggoTag:pagination href="job_search"
						pageSize="<%=form.getPageSize()%>"
						totalRecord="<%=form.getTotalRecord() %>"
						currentPage="<%=form.getPageNum() %>">
					</monggoTag:pagination>
				</div>
			</td>
		</tr>
	</tfoot>
</table>
</div>
<script>
	$(function() {
		XF.Site.init();
		XF.Site.init_css();
	});
</script>
































